<template>
  <dialog-edit :visible.sync="dialogVisible" :title="$attrs.title" ref="userManageEdit" width="1000"
               @save="save" :remember="false" :destroyOnClose="true"
               :height="400" :saveFlag="true" :loading="loading"
               :escClosable="true" :closeFlag="true" :saveLoading="saveLoading">
    <template v-slot:body>
      <working-hours style="padding: 10px" ref="working" :formData="formData"></working-hours>
    </template>
  </dialog-edit>
</template>

<script>
import dialogEdit from '@/components/element/dialogEdit'
import workingHours from "@/page/ProjectManage/modules/task/file/workingHours";
export default {
  name: "dialogView",
  components: {
    dialogEdit,
    workingHours
  },
  props: {
    visible: {
      type: Boolean,
      default: false
    },
    formData: {
      type: Object,
      default: {}
    }
  },
  computed: {
    dialogVisible: {
      get () {
        return this.visible
      },
      set (val) {
        this.$emit('update:visible', val)
      }
    }
  },
  data () {
    return {
      loading: false,
      saveLoading: false
    }
  },
  methods: {
    save () {
      this.$emit('close')
    }
  }
}
</script>

<style scoped>

</style>